<?php
/* @var $this MembersController */
/* @var $model Members */
/* @var $form CActiveForm */
?>

<?php $form=$this->beginWidget('CActiveForm', array(
  'id'=>'accounts-form',
  'enableAjaxValidation'=>false,
  'htmlOptions'=>array('class' => 'form uniformForm validateForm'),
)); ?>

<?php if ($form->errorSummary($model)) :?>
<div class="notify notify-error">
  <a href="javascript:;" class="close">×</a>
  <?php echo $form->errorSummary($model); ?>
</div>
	<?php endif; ?>

<div class="field-group">
  <?php echo $form->labelEx($model, 'name'); ?>
  <div class="field">
     <?php echo $form->textField($model, 'name', array('size' => 45, 'maxlength' => 45)); ?>
  </div>
</div>

<div class="">
<?php echo $form->labelEx($model,'Type'); ?>
	<div class="">
	<?php echo $form->radioButtonList($model, 'member_type', $memberTypes, array('separator'=>''))?>
	</div>
</div>

<div class="field-group">
  <?php echo $form->labelEx($model, 'nickname'); ?>
  <div class="field">
    <?php echo $form->textField($model, 'nickname', array('size' => 32, 'maxlength' => 32)); ?>
  </div>
</div>

<div class="field-group">
  <?php echo $form->labelEx($model, 'password'); ?>
  <div class="field">
    <?php echo $form->passwordField($model, 'password', array('size' => 45, 'maxlength' => 45)); ?>
  </div>
</div>
<div class="field-group">
  <?php echo $form->labelEx($model, 'mac_address'); ?>
  <div class="field">
    <?php echo $form->textField($model, 'mac_address', array('size' => 45, 'maxlength' => 45)); ?>
  </div>
</div>

<div class="">
<?php echo $form->labelEx($model,'Status'); ?>
	<div class="">
	<?php echo $form->radioButtonList($model, 'status', $statusList, array('separator'=>''))?>
	</div>
</div>

<div class="field-group">
  <?php echo $form->labelEx($model, 'parent_member_id'); ?>
  <div class="field">
    <?php echo $form->textField($model, 'parent_member_id', array('size' => 45, 'maxlength' => 45)); ?>
  </div>
</div>

<div class="field-groups">
	<button class="btn btn-small btn-success" type="submit">
		<span class="icon-check"></span>
		<?php echo Yii::t('main', 'button.ok'); ?>
	</button>
	<a href="<?php echo Yii::app()->createUrl('admin/members/list', $_GET); ?>">
       <button class="btn btn-small btn-warning" type="button"><span class="icon-x"></span><?php echo Yii::t('main', 'button.cancel'); ?></button>
    </a>
</div>

<?php $this->endWidget(); ?>